<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let reg = /\d/; // 数字0~9
        let reg1 = /\D/; // 非数字内容
        let reg2 = /\s/; // 空白内容
        let regs = /\S/; // 包含非空白内容
        let reg4 = /\w/; // 0~9 a~zA~Z 下划线_
        let reg5 = /\W/; // 非0~9 a~zA~Z 下划线_
        let reg6 = /./; // 非换行的内容

        let res = reg.test('ddsada0ddada');
        console.log(res);
    </script>
</body>

</html>